import 'package:flutter/material.dart';
import 'package:web_socket_channel/io.dart';

/// socket连接对象共享数据
class SocketObjetProvider with ChangeNotifier{
  IOWebSocketChannel _channel; // 全局socket链接对象
  int _fd; // 相当于链接通道

  IOWebSocketChannel get channel => this._channel;
  set channel(IOWebSocketChannel channel){
    this._channel = channel;
  }

  int get fd => this._fd;
  set fd(int fd){
    this._fd = fd;
  }
}